<?php

namespace app\mobileapp\validate;

use think\Validate;

class ReportUser extends Validate
{

    protected $rule = [
        'content_id' => 'require',
        'desc' => 'require',
        'type_id' => 'require',
        'report_member_id' => 'require',
    ];

    protected $message = [
        'content_id.require' => '内容id不能为空',
        'desc.require' => '举报内容不能为空',
        'type_id.require' => '举报类型id不能为空',
        'report_member_id.require' => '被举报用户不能为空',
    ];


    protected $scene = [
        'reportContent' => ['content_id', 'desc', 'type_id'], //举报内容评论
        'reportMember' => ['report_member_id', 'desc', 'type_id'], //举报用户
    ];

}